package com.easyExcel;

import com.alibaba.excel.EasyExcel;

import java.io.File;
import java.util.ArrayList;

/**
 * @Package: com.easyExcel
 * @ClassName: test02
 * @Author: wulongkai
 * @CreateTime: 2024/2/18 17:49
 * @Description:
 */
public class test02 {
    public static void main(String[] args) {
        File file = new File("/Users/a58/javaProject/java-study/src/main/java/com/easyExcel/模板.xlsx");
        EasyExcel.write(file, Header.class)
                // 导出Excel时在此处注册handler
                .registerWriteHandler(new CustomSheetWriteHandler())
                .sheet(0)
                .doWrite(new ArrayList<>());
    }
}
